import request from '@/axios'

//获取列表数据
export const getListApi = (params?: any) => {
  return request.get({ url: '/admin/miner_firmwareversion', params })
}

//新增保存
export const createDataApi = (data) => {
  return request.post({ url: '/admin/miner_firmwareversion', data })
}

//修改
export const updateDataApi = (data) => {
  return request.put({ url: '/admin/miner_firmwareversion', data })
}

export const getInfoApi = (id: string) => {
  return request.get({ url: `/admin/miner_firmwareversion/${id}` })
}

//删除
export const deleteDataApi = (id: string) => {
  return request.delete({ url: `/admin/miner_firmwareversion/${id}` })
}
